import 'package:animationLab/progress/custom_circular_progress_indicator.dart';
import 'package:flutter/material.dart';

class CircularTextProgressWidget extends StatelessWidget {
  final double value;

  const CircularTextProgressWidget({
    Key key,
    this.value,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: <Widget>[
        SizedBox(
          height: 35.0,
          child: CustomCircularProgressIndicator(
            value: value,
          ),
        ),
        SizedBox(height: 14 - 2.5),
        Text(
          '${(value * 100).round()}%',
          style: TextStyle(
            fontSize: 13,
            color: Color(0xFFC0C3CC),
          ),
        ),
      ],
    );
  }
}
